/**
 * @file
 * @brief source of (module)
 * @details
 *  
 * @author buaa.byl
 * @date 2012-04-11 created
 */

/* ************************************************************************* */
/*              include files                                                */
/* ************************************************************************* */
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>


/* ************************************************************************* */
/*              declare of file-based type or struct                         */
/* ************************************************************************* */


/* ************************************************************************* */
/*              define of file-based variable                                */
/* ************************************************************************* */


/* ************************************************************************* */
/*              declare of file-based interface                              */
/* ************************************************************************* */


/* ************************************************************************* */
/*              define of module interface                                   */
/* ************************************************************************* */


/* ************************************************************************* */
/*              define of file-based interface                               */
/* ************************************************************************* */



/**
 * @brief program entry.
 * @details
 *        The first function call by systm.
 * @param[in]   argc number of command line arguments.
 * @param[in]   argv array of command line arguments.
 * @return      any int value.
 */
int main(int argc, const char* argv[])
{
    //Adding source below.
    char c;
    char driver[3] = "c:";
    char buffer[4096] = {0};

    printf("Input driver letter(such like 'c') : ");
    fflush(stdout);
    scanf("%c", &c);
    if (('a' < c) && (c < 'z')) {
        driver[0] = c;
        if (QueryDosDevice(driver, buffer, sizeof(buffer))) {
            printf("Physic : %s\n", buffer);
        }
    }

    return 0;
}

